#pragma once
#include "Sock.h"
#include "Theadlib/thread.h"

namespace Sock
{
class  SNETWORK_API CreateThread  : public Threads::ThreadObject
{
public:
    static Threads::ThreadObject *instance(void*);
    int execute(void *parr);
   
private:    
    CreateThread();

    static CreateThread* m_instance;    
    class CGarbo {public: ~CGarbo(){if (CreateThread::m_instance) delete CreateThread::m_instance;}};
    static CGarbo Garbo;	    
};
}
